#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QVBoxLayout>
#include "WidgetWithMatrix.h"
#include "myglwidget.h"
#include <deque>

namespace Ui
{
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

	void matrixMovedUp(int id);
	void matrixMovedDown(int id);

private:
    Ui::MainWindow *ui;
	MyGLWidget *m_glWidget;

	QVBoxLayout *m_mtxStackLayout;

	WidgetWithMatrix *findWidgetWithMatrixByMatrixId(int id);

	typedef std::deque<WidgetWithMatrix *> WidgetsWithMatrixList;

	WidgetsWithMatrixList m_widgetList;


public slots:
    void on_zSB_valueChanged(double );
	void addButtonClicked();

};

#endif // MAINWINDOW_H
